home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.JComponent;
- import com.sun.java.swing.JLabel;
- import com.sun.java.swing.UIManager;
- import com.sun.java.swing.plaf.ComponentUI;
- import com.sun.java.swing.plaf.basic.BasicGraphicsUtils;
- import com.sun.java.swing.plaf.basic.BasicLabelUI;
- import java.awt.Graphics;
-
- public class MetalLabelUI extends BasicLabelUI {
- protected static MetalLabelUI metalLabelUI = new MetalLabelUI();
-
- public static ComponentUI createUI(JComponent c) {
- return metalLabelUI;
- }
-
- protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY) {
- int accChar = l.getDisplayedMnemonic();
- g.setColor(UIManager.getColor("Label.disabled"));
- BasicGraphicsUtils.drawString(g, s, accChar, textX, textY);
- }
- }
-